package com.jy.books.domain;

import java.math.BigDecimal;
import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.jy.records.domain.BorrowRecords;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.jy.common.annotation.Excel;
import com.jy.common.core.domain.BaseEntity;

/**
 * 图书管理对象 books
 * 
 * @author ruoyi
 * @date 2025-05-29
 */
public class Books extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 图书ID，主键，自动递增 */
    private Long bookId;

    /** 国际标准书号，唯一标识 */
    @Excel(name = "国际标准书号，唯一标识")
    private String isbn;

    /** 图书标题 */
    @Excel(name = "图书标题")
    private String title;

    /** 作者 */
    @Excel(name = "作者")
    private String author;

    /** 出版社 */
    @Excel(name = "出版社")
    private String publisher;

    /** 出版日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出版日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date publishDate;

    /** 图书分类 */
    @Excel(name = "图书分类")
    private String category;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal price;

    /** 总藏书量 */
    @Excel(name = "总藏书量")
    private Long totalCopies;

    /** 可用数量 */
    @Excel(name = "可用数量")
    private Long availableCopies;

    /** 图书状态 */
    @Excel(name = "图书状态")
    private String status;

    /** 馆藏位置 */
    @Excel(name = "馆藏位置")
    private String location;

    /** 借阅记录信息 */
    private List<BorrowRecords> borrowRecordsList;

    public void setBookId(Long bookId) 
    {
        this.bookId = bookId;
    }

    public Long getBookId() 
    {
        return bookId;
    }

    public void setIsbn(String isbn) 
    {
        this.isbn = isbn;
    }

    public String getIsbn() 
    {
        return isbn;
    }

    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }

    public void setAuthor(String author) 
    {
        this.author = author;
    }

    public String getAuthor() 
    {
        return author;
    }

    public void setPublisher(String publisher) 
    {
        this.publisher = publisher;
    }

    public String getPublisher() 
    {
        return publisher;
    }

    public void setPublishDate(Date publishDate) 
    {
        this.publishDate = publishDate;
    }

    public Date getPublishDate() 
    {
        return publishDate;
    }

    public void setCategory(String category) 
    {
        this.category = category;
    }

    public String getCategory() 
    {
        return category;
    }

    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }

    public void setTotalCopies(Long totalCopies) 
    {
        this.totalCopies = totalCopies;
    }

    public Long getTotalCopies() 
    {
        return totalCopies;
    }

    public void setAvailableCopies(Long availableCopies) 
    {
        this.availableCopies = availableCopies;
    }

    public Long getAvailableCopies() 
    {
        return availableCopies;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setLocation(String location) 
    {
        this.location = location;
    }

    public String getLocation() 
    {
        return location;
    }

    public List<BorrowRecords> getBorrowRecordsList()
    {
        return borrowRecordsList;
    }

    public void setBorrowRecordsList(List<BorrowRecords> borrowRecordsList)
    {
        this.borrowRecordsList = borrowRecordsList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("bookId", getBookId())
            .append("isbn", getIsbn())
            .append("title", getTitle())
            .append("author", getAuthor())
            .append("publisher", getPublisher())
            .append("publishDate", getPublishDate())
            .append("category", getCategory())
            .append("price", getPrice())
            .append("totalCopies", getTotalCopies())
            .append("availableCopies", getAvailableCopies())
            .append("status", getStatus())
            .append("location", getLocation())
            .append("borrowRecordsList", getBorrowRecordsList())
            .toString();
    }
}
